package com.kuang.service;

import com.kuang.pojo.Books;
import com.kuang.pojo.Movies;
import com.kuang.pojo.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @auther liuyang
 * @create 2021-10-24-19:05
 */
public interface BookService {
    //增加一个Book
    int addBook(Books book);
    //根据id删除一个Book
    int deleteBookById(int id);
    //更新Book
    int updateBook(Books books);
    //根据id查询,返回一个Book
    Books queryBookById(int id);
    //查询全部Book,返回list集合
    List<Books> queryAllBook();

    List<Movies> getMovies();

    List<Movies> searchMovies(String movie);

    Users testLogin(@Param("username") String username,@Param("password") String password);
}
